<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="fck"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>发表图片文章</title>
<link rel="stylesheet" type="text/css" href="../css/style1.css" />
<link rel="stylesheet" type="text/css" href="../css/base.css" />
<link rel="stylesheet" type="text/css" href="../css/indexbody.css" />
<script type="text/javascript" src="../js/frame.js"></script>
<script type="text/javascript" src="../js/jquery-1.5.1.min.js"></script>
<script type="text/javascript">
	window.onload = function() {
		document.getElementById("hide").style.display = "block";
		document.getElementById("sc").style.display = "none";
		document.getElementById("vip").style.display = 'none';
		document.getElementById("mb").style.display = 'none';
		document.getElementById("sys").style.display = 'none';
	}
	function uploadshow(ve) {
		if (ve == "headefield") {
			$("#headefield").show();
			$("#htmlfield").hide();
		}
		if (ve == "htmlfield") {
			$("#htmlfield").show();
			$("#headefield ").hide();
		}

	}
	function showimg() {
		var path = document.getElementById("filename").value;
		alert(path);
		var yl = document.getElementById("ylimg");
		yl.src = path;
		yl.width = 100;
		alert("/" + yl.src);
		yl.height = 130;
	}
</SCRIPT>
</script>

</head>
<body background="../images/allbg.gif">
	<div id="container">
		<jsp:include page="/manager/header.jsp"></jsp:include>
		<div style="float: left; width: 195px; height: 550px">
			<jsp:include page="/manager/leftnav.jsp"></jsp:include>
		</div>
		<div
			style="float: left; overflow-y: scroll; overflow-x: hidden; width: 785px; height: 550px;">
			<form name="form1" action="pictures!addPictures.action"
				enctype="multipart/form-data" method="post">

				<table width="90%" border="0" align="center" cellpadding="0"
					cellspacing="0">
					<tr>
						<td width="62%" height="30"><img height=14
							src="../images/book1.gif" width="20" /> &nbsp; <a href=""><u>图集列表</u>
						</a> &gt;&gt; 发布新图集</td>

					</tr>
				</table>
				<table width="90%" border="0" align="center" cellpadding="0"
					cellspacing="0" id="head1">
					<tr>
						<td colspan="2">
							<table border="0" cellpadding="0" cellspacing="0"
								style="margin-left: -40px">
								<tr>
									<td width="84" height="24" align="center"
										background="../images/itemnote1.gif">&nbsp;常规内容&nbsp;</td>

								</tr>
							</table></td>
					</tr>
				</table>

				<table width="90%" border="0" align="center" cellpadding="2"
					cellspacing="2" id="needset"
					style="border: 1px solid #cfcfcf; background: #ffffff;">
					<tr>
						<td height="24" colspan="4" class="bline">
							<table width="800" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="85">&nbsp;图集标题：</td>
									<td width='309'><input name="info.title" type="text"
										id="title" value="" style="width: 300px" /></td>
									<td width="71">&nbsp;简略标题：</td>
									<td width="335"><input name="info.simplTitle" type="text"
										id="shorttitle" style="width: 150px" /></td>
								</tr>
							</table></td>
					</tr>
					<tr>
						<td width="90%" height="24" colspan="4" class="bline">
							<table width="800" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="85">&nbsp;自定义属性：</td>
									<td width="715"><input class='np' type='checkbox'
										name='flags[]' id='flagsh' value='h' /> 头条[h] <input
										class='np' type='checkbox' name='flags' id='flagsc' value='1' />
										置顶[c] <input class='np' type='checkbox' name='flags'
										id='flagsa' value='2' /> 推荐[a] <input class='np'
										type='checkbox' name='flags' id='flagsb' value='3' /> 加粗[b]</td>
								</tr>
							</table></td>
					</tr>

					<tr>
						<td width="100%" height="24" class="bline">
							<table width="800" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="80">&nbsp;TAG标签：</td>
									<td width="715"><input name="tags" type="text" id="tags"
										value="" style="width: 250px" /> (','号分开，单个标签小于12字节)</td>
								</tr>
							</table></td>
					</tr>
					<tr id="pictable">
						<td height="24" colspan="4" class="bline">
							<table width="800" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="75">&nbsp;缩 略 图：</td>
									<td>
										<table width="100%" border="0" cellspacing="1" cellpadding="1">
											<tr>
												<td height="30"><input name="picname" type="text"
													id="picname" value="${info.thumbnail }"
													style="width: 240px" /> <input type="button" value="本地上传"
													style="width: 70px; cursor: pointer;" />
											</tr>
										</table></td>
								</tr>
							</table></td>
					</tr>
					<tr>
						<td height="24" colspan="5" class="bline">
							<table width="800" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="80">&nbsp;图集来源：</td>
									<td width="245"><input type="text" name="info.source"
										style="width: 160px" value="${info.source }" size="16" />
										<td width="90">作 者：</td>
										<td width="380"><input type="text" name="info.author"
											style="width: 120px" value="${info.author}" /></td>
								</tr>
							</table></td>
					</tr>
					<tr>
						<td height="24" colspan="4" class="bline">
							<table width="800" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="90">&nbsp;图集主栏目：</td>
									<td><span id='typeidct'> <s:select list="columns"
												headerValue="全部" headerKey="0" listKey="id"
												listValue="columsInfo" name="columnsid" theme="simple"></s:select>
									</span></td>
									<td width="90">&nbsp;软件副栏目：</td>
									<td><span id='typeidct'> <s:select list="columns"
												headerValue="全部" headerKey="0" listKey="id"
												listValue="columsInfo" name="columnsid" theme="simple"></s:select>
									</span></td>
								</tr>
							</table></td>
					</tr>

					<td height="24" colspan="4" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="90">&nbsp; <b>上传方式：</b></td>
								<td><input name="isrm" class="np" type="hidden" id="isrm"
									value="1" /><input name="uploadtype" class="np" type="radio"
									id="byhand" value="1" onclick="uploadshow('headefield')" />
									手工上传<input name="uploadtype" class="np" type="radio"
									id="formhtml" value="1" onclick=" uploadshow('htmlfield')" />
									网上复制图片</td>
							</tr>
						</table></td>
					</tr>
					<tr id="headefield" style="display: none">
						<td height="24" colspan="4" class="bline">
							<table width="800" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="90">&nbsp;手工上传：</td>
									<td><INPUT name="filename" id="filename" TYPE="file"
										value="" onchange="setTimeout('showimg()',500)">
									</td>
								</tr>
							</table></td>
					</tr>
					<tr id="htmlfield">
						<td height="24" colspan="4" class="bline">
							<table width="800" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="90">&nbsp;网上复制：</td>
									<td>复制的源网址： <input name='copysource' type='text'
										value='http://' style='width: 250px' /> <input type="button"
										name="button" id="button" value="预览" onClick="LoadTestDiv()" />
										<br /></td>
								</tr>
							</table></td>
					</tr>
					<tr>
						<td width="100%" height="24" colspan="4" class="bline">
							<table width="800" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="80" height="40">&nbsp; <b>手工上传：</b></td>
									<td><img src="" name="ylimg" id="ylimg" /></td>
								</tr>
							</table></td>
					</tr>
					<tr id="handfield">
						<td colspan="4" class="bline"
							style="background: url(../images/albviewbg.gif) #fff 0 20px no-repeat;">
							<table width='100%' height='160' style="margin: 0 0 20px 0">
								<tr>
									<td>
										<div id="divFileProgressContainer" style="height: 75px;"></div>
										<div id="thumbnails"></div></td>
								</tr>
							</table></td>
					</tr>
					<tr>
						<td height="24" colspan="4">
							<table width="800" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="80" height="40">&nbsp; <b>图集内容：</b></td>
								</tr>
								<tr>
									<td width="100%" id="arcBody"><fck:editor
											inputName="info.content" instanceName="editorDefult"
											basePath="/fckeditor" value="" width="750px" height="250px"></fck:editor>
									</td>
								</tr>
							</table></td>
					</tr>
				</table>
				<table width="90%" border="0" align="center" cellpadding="2"
					cellspacing="2" id="adset"
					style="border-left: 1px solid #cfcfcf; border-right: 1px solid #cfcfcf; border-top: 1px solid #cfcfcf; background: #ffffff;">
					<tr>
						<td height="24" colspan="4" class="bline">
							<table width="800" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="90">&nbsp;发布时间：</td>
									<td width="22px" />
									<td width="241"><input type="text" name="info.createTime"
										style="width: 120px" onClick="WdatePicker()" /></td>
									<td width="90px">发布选项：</td>
									<td width="379"><input name="ishtml" type="radio"
										class="np" value="1" checked="1" /> 生成HTML <input
										type="radio" name="ishtml" class="np" value="0" /> 仅动态浏览</td>
								</tr>
							</table></td>
					</tr>
					<tr>
						<td height="24" colspan="4" class="bline">
							<table width="800" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="109">&nbsp;自定义文件名：</td>
									<td width="351"><input type="text" name="info.url"
										style="width: 100px" /> （不包括后缀名如.html等,可省略.）</td>

									<td width="90">浏览次数：</td>
									<td><input type='text' name='info.click' value='136'
										style='width: 100px;' /></td>
								</tr>
							</table></td>
					</tr>
					<tr>
						<td height="24" colspan="4" class="bline">
							<table width="800" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="109">&nbsp;阅读权限: <select
										style="margin-left: 50px" name="info.permission">
											<option value="0">开放阅读</option>
											<option value="1">会员阅读</option>
									</select></td>
									<td width="351"></td>
								</tr>
							</table></td>
					</tr>
				</table>


				<table width="100%" border="0" cellspacing="0" cellpadding="0"
					align="center" bgcolor="#F9FCEF"
					style="border: 1px solid #cfcfcf; border-top: none;">
					<tr height="35">

						<td width="100%"><input name="imageField" type="image"
							src="../images/button_save.gif" width="60" height="22" class="np"
							border="0" style="cursor: pointer; margin-left: 260px" /> <input
							name="" type="image" src="../images/button_reset.gif" width="60"
							height="22" class="np" border="0" style="cursor: pointer;" /></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</body>
</html>
